package com.lixueju.security.box.web.authentication;

import com.lixueju.security.box.core.model.dto.UserToken;
import lombok.Data;
import lombok.ToString;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * @author lixueju
 * @since 2019/10/7 17:35
 **/
@Data
@ToString
public class UserJwt extends User {
    private UserToken userToken;
    private String jwtToken;
    private String refreshToken;
    private int expiresIn;
    private String jti;
    public UserJwt(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }
}
